package com.hzspace.counter;

/**
 * @Author: LiuHao
 * @Descirption:
 * @Date: 2019/6/14_15:29
 */
public class Counter1 {

    private int count;

    public void add(){
        try{
            for(int i=0; i<200; i++){
                Thread.sleep(100);
                this.count++;
                System.out.println(this.count);
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
